<?php
namespace Tools\Model;
use Common\Model\BaseModel;
class ToolsSlideCatModel extends BaseModel{

	//自动验证
	protected $_validate = array(
			array('cat_name', 'require', '分类名称不能为空！', 1, 'regex', 3),
			array('cat_idname', 'require', '分类标识不能为空！', 1, 'regex', 3),
	);

	protected function _before_write(&$data) {
		parent::_before_write($data);
	}
}